<template>
  <div id="app">
    <keep-alive>
      <!-- 如果组件路由上有$route.meta.isKeepAlive -->
       <router-view v-if="$route.meta.isKeepAlive"></router-view>
    </keep-alive>
      <router-view  v-if="!$route.meta.isKeepAlive"></router-view>
  </div>
</template>

<style lang="less">

</style>
